#!/bin/sh

set -eux
cd `dirname $0`

BUILD_DIR="./build"

if [ -d ${BUILD_DIR} ]; then
	rm -rf ${BUILD_DIR}
fi

mkdir ${BUILD_DIR}

cd ${BUILD_DIR}
cmake ../
#cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=DEBUG ../
